package com.njxxted.activiti.modules.business.leave.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.njxxted.activiti.modules.base.entity.BaseReqEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 描述：请假流程业务表 Entity
 * <p>
 * 作者：HuTongFu
 * 邮箱：hu_tongfu@163.com
 * 时间：2019-08-07 14:18:16
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BusLeaveReqEntity extends BaseReqEntity {

    private static final long serialVersionUID = -2871615902743661900L;
    //主键id
    private String id;
    //开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDate;
    //结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;
    //申请原因
    private String reason;
    //申请人
    private String applyUser;
    //流程实例id
    private String processId;
    //流程key
    private String processKey;
    //流程状态
    private String status;
}
